package com.demo.model;

import javax.persistence.*;
import org.apache.ibatis.type.Alias;

@Alias("country")
@Table(name = "country")
public class Country extends BaseDO{
    @Id
    @Column(name = "Code")
    private String code;

    @Column(name = "Name")
    private String name;

    @Column(name = "Continent")
    private String continent;

    @Column(name = "Region")
    private String region;

    @Column(name = "SurfaceArea")
    private Float surfaceArea;

    @Column(name = "IndepYear")
    private Short indepYear;

    @Column(name = "Population")
    private Integer population;

    @Column(name = "LifeExpectancy")
    private Float lifeExpectancy;

    @Column(name = "GNP")
    private Float GNP;

    @Column(name = "GNPOld")
    private Float GNPOld;

    @Column(name = "LocalName")
    private String localName;

    @Column(name = "GovernmentForm")
    private String governmentForm;

    @Column(name = "HeadOfState")
    private String headOfState;

    @Column(name = "Capital")
    private Integer capital;

    @Column(name = "Code2")
    private String code2;

    /**
     * @return Code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /**
     * @return Name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * @return Continent
     */
    public String getContinent() {
        return continent;
    }

    /**
     * @param continent
     */
    public void setContinent(String continent) {
        this.continent = continent == null ? null : continent.trim();
    }

    /**
     * @return Region
     */
    public String getRegion() {
        return region;
    }

    /**
     * @param region
     */
    public void setRegion(String region) {
        this.region = region == null ? null : region.trim();
    }

    /**
     * @return SurfaceArea
     */
    public Float getSurfaceArea() {
        return surfaceArea;
    }

    /**
     * @param surfaceArea
     */
    public void setSurfaceArea(Float surfaceArea) {
        this.surfaceArea = surfaceArea;
    }

    /**
     * @return IndepYear
     */
    public Short getIndepYear() {
        return indepYear;
    }

    /**
     * @param indepYear
     */
    public void setIndepYear(Short indepYear) {
        this.indepYear = indepYear;
    }

    /**
     * @return Population
     */
    public Integer getPopulation() {
        return population;
    }

    /**
     * @param population
     */
    public void setPopulation(Integer population) {
        this.population = population;
    }

    /**
     * @return LifeExpectancy
     */
    public Float getLifeExpectancy() {
        return lifeExpectancy;
    }

    /**
     * @param lifeExpectancy
     */
    public void setLifeExpectancy(Float lifeExpectancy) {
        this.lifeExpectancy = lifeExpectancy;
    }

    /**
     * @return GNP
     */
    public Float getGNP() {
        return GNP;
    }

    /**
     * @param GNP
     */
    public void setGNP(Float GNP) {
        this.GNP = GNP;
    }

    /**
     * @return GNPOld
     */
    public Float getGNPOld() {
        return GNPOld;
    }

    /**
     * @param GNPOld
     */
    public void setGNPOld(Float GNPOld) {
        this.GNPOld = GNPOld;
    }

    /**
     * @return LocalName
     */
    public String getLocalName() {
        return localName;
    }

    /**
     * @param localName
     */
    public void setLocalName(String localName) {
        this.localName = localName == null ? null : localName.trim();
    }

    /**
     * @return GovernmentForm
     */
    public String getGovernmentForm() {
        return governmentForm;
    }

    /**
     * @param governmentForm
     */
    public void setGovernmentForm(String governmentForm) {
        this.governmentForm = governmentForm == null ? null : governmentForm.trim();
    }

    /**
     * @return HeadOfState
     */
    public String getHeadOfState() {
        return headOfState;
    }

    /**
     * @param headOfState
     */
    public void setHeadOfState(String headOfState) {
        this.headOfState = headOfState == null ? null : headOfState.trim();
    }

    /**
     * @return Capital
     */
    public Integer getCapital() {
        return capital;
    }

    /**
     * @param capital
     */
    public void setCapital(Integer capital) {
        this.capital = capital;
    }

    /**
     * @return Code2
     */
    public String getCode2() {
        return code2;
    }

    /**
     * @param code2
     */
    public void setCode2(String code2) {
        this.code2 = code2 == null ? null : code2.trim();
    }
}